﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="SheetDetails.aspx.vb" Inherits="TeachersWorkSheets.SheetDetails" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            width: 171px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
    <br />
</p>
    <p>
        &nbsp;</p>
    <table class="style1">
        <tr>
            <td class="style2" align="center">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="ActivitySheetSource" BackColor="White" BorderColor="#CCCCCC" 
                    BorderStyle="None" BorderWidth="1px" CellPadding="3" Width="553px">
        <Columns>
            <asp:BoundField DataField="ShtName" HeaderText="Sheet Name" 
                SortExpression="ShtName" />
            <asp:BoundField DataField="ShtSubject" HeaderText="Subject" 
                SortExpression="ShtSubject" />
            <asp:BoundField DataField="ShtGrade" HeaderText="Grade" 
                SortExpression="ShtGrade" />
            <asp:BoundField DataField="ShtRegDate" HeaderText="ShtRegDate" 
                SortExpression="ShtRegDate" />
            <asp:HyperLinkField DataNavigateUrlFields="ID" 
                DataNavigateUrlFormatString="ShowIt.aspx?ID={0}" DataTextField="ShtName" 
                Text="Show it" />
        </Columns>
        <FooterStyle BackColor="White" ForeColor="#000066" />
        <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
        <RowStyle ForeColor="#000066" />
        <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#F1F1F1" />
        <SortedAscendingHeaderStyle BackColor="#007DBB" />
        <SortedDescendingCellStyle BackColor="#CAC9C9" />
        <SortedDescendingHeaderStyle BackColor="#00547E" />
    </asp:GridView>
            </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2" align="center">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
<p>
    <asp:SqlDataSource ID="ActivitySheetSource" runat="server" 
        ConnectionString="<%$ ConnectionStrings:SheetsConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:SheetsConnectionString.ProviderName %>" 
        
        
        SelectCommand="SELECT [ShtRegDate], [ShtFile], [ShtName], [ShtCreator], [ShtDescription], [ShtSubject], [ShtGrade], [ID] FROM [ActivitySheet] ORDER BY [ID] DESC">
    </asp:SqlDataSource>
</p>
<p>
    <asp:Button ID="Button1" runat="server" PostBackUrl="~/UpLoadSheet.aspx" 
        style="margin-left: 242px" Text="Add New Sheet" />
</p>
<p>
</p>
<p>
</p>
</asp:Content>
